package src;

import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Date;

public class Server extends UDPServer{
	
	Server() throws SocketException, UnknownHostException{
		super();
	}

	@Override
	public String serverProtocol(String inStr) {
		return (new Date().toString() + ", OK");
	}
	
	public static void main(String[] args){
		try {
			
			(new Thread(new Server(), "UDPServer 1")).start();
			
		} catch (SocketException e) {
			System.out.println("SocketException: " + e.getMessage());
		} catch (UnknownHostException e) {
			System.out.println("UnknownHostException: " + e.getMessage());
		}
	}
}
